
/*************/

var mobileAgent = new Array("iphone", "ipod", "ipad", "android", "mobile", "blackberry", "webos", "incognito", "webmate", "bada", "nokia", "lg", "ucweb", "skyfire");
var browser = navigator.userAgent.toLowerCase();
var isMobile = false;
for (var i = 0; i < mobileAgent.length; i++) {
  if (browser.indexOf(mobileAgent[i]) != -1) {
    isMobile = true;
    var path = location.pathname.toLowerCase() + location.search;
    if(path.indexOf("index")>0){
      location.href = 'https://m.zetianhui.com/zetianhui' + '/html/index.html';
    }else if(path.indexOf("activities")>0){
      location.href = 'https://m.zetianhui.com/zetianhui' + '/html/jiujiubaoyou.html';
    }else if(path.indexOf("souhuiquan")>0){
      location.href = 'https://m.zetianhui.com/zetianhui' + '/html/searchVoucher.html';
    }else if(path.indexOf("jiujiubaoyou")>0){
      location.href = 'https://m.zetianhui.com/zetianhui' + '/html/baoyou.html';
    }
    break;
  }
}
